import request from '@/utils/request'
// 获取流程信息
export function getPublishProcess(query) {
  return request({
    url: `/flowprocess/publishflowprocess`,
    method: 'GET',
    params: query
  })
}

export function recoverProcessModel(query) {
  return request({
    url: `/flowprocess/recoverProcess/${query}`,
    method: 'GET'
  })
}

export function getTodoProcess(query) {
  return request({
    url: `/flowprocess/GetTodoInstances`,
    method: `GET`,
    params: query
  })
}

export function getInstanceNode(query) {
  return request({
    url: `/flowprocess/GetTodoInstancesNodes`,
    method: `GET`,
    params: query
  })
}

export function gotoNextStep(data) {
  return request({
    url: '/flowprocess/nextStep',
    method: 'POST',
    data
  })
}
